﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Windows.Forms;

namespace TimeReporter
{
    public class ProjectList : myBindingListView<ProjectObject>, INotifyPropertyChanged
    {
        private string _pathToFiles;
        private myBindingListView<DayObject> _test1;
        private static ProjectList instance = new ProjectList();

        public event PropertyChangedEventHandler PropertyChanged;
        
        private void NotifyPropertyChanged(string info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
        
        private ProjectList() : base()
        {
            _test1 = new myBindingListView<DayObject>();
           
        }

        

        public static ProjectList getInstance()
        {
            return instance;
        }


        public string PathToFiles
        {
            get { return _pathToFiles; }
            set {
                if (value != null && value != _pathToFiles)
                {
                    _pathToFiles = value;
                    NotifyPropertyChanged("PathToFiles");
                }
            }
        }
       
        public myBindingListView<DayObject> test1
        {
            get { return _test1; }
        }
        
 
        

    }
}
